﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;

namespace Hands.Unit.Web
{
    public interface ISendMail
    {
        ISendMail addTo(string to);
        ISendMail addTo(List<string> to);

        ISendMail addMessage(string title, string content);
        ISendMail addMessage(string title, string content, bool isBodyHtml);


        ISendMail addFrom(string from, string senderPassword);

        ISendMail addAttachments(string path);
        ISendMail addAttachments(List<string> paths);

        void send();
        void sendAsync(SendCompletedEventHandler onCompleted);
    }
}
